﻿// not needed for VERSION1

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net; // added

// Socket example for AT-INIF (Master) Arch by JDH

// this class stores the information that the server needs about each connected client

namespace Server
{
    class ClientInfo
    {
        // information required by server for each client

        #region data members
        // connection ID used for each message 1... (use also as index into array)
        private string m_nID;

        // address
        private IPEndPoint m_cSendTo;
        #endregion data members


        #region constructor
        public ClientInfo()
        {
            m_nID = "";
            m_cSendTo = null;
        }
        #endregion constructor

        #region properties
        public string ID
        {
            get
            {
                return m_nID;
            }
            set
            {
                m_nID = value;
            }
        }

        public IPEndPoint AddressSendTo
        {
            get
            {
                return m_cSendTo;
            }
            set
            {
                m_cSendTo = new IPEndPoint(value.Address, value.Port);
            }
        }
        #endregion properties
    }
}

